package com.example.flower_shop.service.usr;

import com.example.flower_shop.common.PageResult;
import com.example.flower_shop.entity.UserCollect;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.flower_shop.vo.collect.CollectPageReq;
import com.example.flower_shop.vo.collect.CollectReq;
import com.example.flower_shop.vo.collect.CollectRespVO;
import jakarta.validation.Valid;

/**
* @author zbxComputer
* @description 针对表【sys_user_collect(用户收藏商品表)】的数据库操作Service
* @createDate 2024-11-21 12:48:27
*/
public interface UserCollectService extends IService<UserCollect> {

    void addCollect(@Valid CollectReq req);

    PageResult<CollectRespVO> getCollectList(@Valid CollectPageReq req);

    void deleteCollect(Long id);

    Boolean hasCollected(Long productId);
}
